//
//  JMUser.m
//  VoluntaryStar
//
//  Created by xiaorui on 15/9/1.
//  Copyright (c) 2015年 ios. All rights reserved.
//

#import "JMUser.h"

@interface JMUser()

@end

@implementation JMUser
@synthesize  message = _message;
@synthesize  state = _state;
@synthesize  token = _token;
@synthesize  userId = _userId;
@synthesize  email = _email;
@synthesize  regTime = _regTime;


//@property (nonatomic, copy) NSString *characterString;
//
//@property (nonatomic, copy)   NSString *picString;
//
//@property (nonatomic, strong) NSString * nicheng;
//
//@property (nonatomic, strong) NSString * sexString;
//
//@property (nonatomic, strong) NSString * brithDate;
//
//@property (nonatomic, strong) NSString * schoolString;
//
//@property (nonatomic, strong) NSString * grade;
//
//@property (nonatomic, strong) NSString * wenli;
//
//@property (nonatomic, strong) NSString * weixin;
//
//@property (nonatomic, strong) NSString * qqhao;
//
//@property (nonatomic, strong) NSString * dizhi;
//

-(void)encodeWithCoder:(NSCoder *)aCoder{
    [aCoder encodeObject:self.message forKey:@"message"];
    [aCoder encodeObject:self.state forKey:@"state"];
    [aCoder encodeObject:self.token forKey:@"token"];
    [aCoder encodeObject:self.userId forKey:@"userId"];
    [aCoder encodeObject:self.email forKey:@"email"];
    [aCoder encodeObject:self.regTime forKey:@"regTime"];
    [aCoder encodeObject:self.lastTime forKey:@"lastTime"];
    [aCoder encodeObject:self.mobile forKey:@"mobile"];
    
    [aCoder encodeObject:self.characterString forKey:@"characterString"];
    [aCoder encodeObject:self.picString forKey:@"picString"];
    [aCoder encodeObject:self.sexString forKey:@"sexString"];
    [aCoder encodeObject:self.brithDate forKey:@"brithDate"];
    [aCoder encodeObject:self.schoolString forKey:@"schoolString"];
    [aCoder encodeObject:self.grade forKey:@"grade"];
    [aCoder encodeObject:self.wenli forKey:@"wenli"];
    [aCoder encodeObject:self.weixin forKey:@"mobile"];
    [aCoder encodeObject:self.qqhao forKey:@"qqhao"];
    [aCoder encodeObject:self.dizhi forKey:@"dizhi"];
    [aCoder encodeObject:self.nicheng forKey:@"nicheng"];


}

-(id)initWithCoder:(NSCoder *)aDecoder{
    if (self = [super init]){
        self.message = [aDecoder decodeObjectForKey:@"message"];
        self.state = [aDecoder decodeObjectForKey:@"state"];
        self.token = [aDecoder decodeObjectForKey:@"token"];
        self.userId = [aDecoder decodeObjectForKey:@"userId"];
        self.email = [aDecoder decodeObjectForKey:@"email"];
        self.regTime = [aDecoder decodeObjectForKey:@"regTime"];
        self.lastTime = [aDecoder decodeObjectForKey:@"lastTime"];
        self.mobile = [aDecoder decodeObjectForKey:@"mobile"];

        self.characterString = [aDecoder decodeObjectForKey:@"characterString"];
        self.picString = [aDecoder decodeObjectForKey:@"picString"];
        self.sexString = [aDecoder decodeObjectForKey:@"sexString"];
        self.brithDate = [aDecoder decodeObjectForKey:@"brithDate"];
        self.schoolString = [aDecoder decodeObjectForKey:@"schoolString"];
        self.grade = [aDecoder decodeObjectForKey:@"grade"];
        self.wenli = [aDecoder decodeObjectForKey:@"wenli"];
        self.weixin = [aDecoder decodeObjectForKey:@"weixin"];
        self.qqhao = [aDecoder decodeObjectForKey:@"qqhao"];
        self.dizhi = [aDecoder decodeObjectForKey:@"dizhi"];
        self.nicheng = [aDecoder decodeObjectForKey:@"nicheng"];

    }
    return (self);
}

//- (BOOL)preferFastCoding{
//    return YES;
//}
@end
